import request from '@/utils/request'

const api_name = "/api/user/patient"
export default {
  findList() {
    return request({
      url: api_name+`/auth/findAll`,
      method: `get`
    })
  },
 // 根据id查询就诊人信息
  getById(id) {
    return request({
      url: api_name+`/auth/get/`+id,
      method: 'get'
    })
  },
  // 添加就诊人信息
  save(patient) {
    return request({
      url: api_name+`/auth/save`,
      method: 'post',
      data: patient
    })
  },
  // 更新就诊人信息
  updateById(patient) {
    return request({
      url: api_name+`/auth/update`,
      method: 'post',
      data: patient
    })
  },
  // 通过id删除
  removeById(id) {
    return request({
      url: api_name+'/auth/remove/'+id,
      method: 'delete'
    })
  }
}
